﻿@using SanalMagaza.Model.Extentions
@using SanalMagaza.Model
@model Product
<div id="products">
    <article class="group">
        <h3>@Model.Title  Ürünü Detayı</h3>
        
        <div class="product-detail">
            <div class="image"><img src="@Model.GetDefaultImage()" /></div>
            <ul class="basic-properties">
                <li class="price"><label class="lbl">Fiyat :</label><label>@Model.Price TL</label></li>
                <li class="price-kdv"><label class="lbl">Fiyat (KDV) :</label><label>@(Model.ByKdv()) TL</label></li>
                <li class="price-totalcount"><label class="lbl">Stok Miktarı :</label><label>@Model.TotalCount TL</label></li>
                <li><a href="@Url.Action("Pos", "Product")">Satın Al</a></li>
            </ul>
        </div>
    </article>
    <h3>
        Ürün Özellikleri</h3>
    <article class="group">
        <ul class="product-features">
            @foreach (var item in ((IList<ProductFeaturesRelation>)ViewBag.ProductFeatures).OrderBy(d => d.OrderNumber).ToList())
            {
                <li><label class="lbl">@item.Name</label> : <label>@item.Value</label></li>
            }
            <li><label class="lbl">Ürün Açıklaması</label> : <label>@Model.Description</label></li>
        </ul>
    </article>
</div>
